<%@ page import="bean.BookBean" %>
<%@ page import="java.util.List" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" href="../layui/css/layui.css">
</head>
<body>
<%
      List<BookBean> list = (List<BookBean>) session.getAttribute("books");
%>

<table class="layui-table">
      <tr>
          <td>图片</td>
          <td>书名</td>
          <td>价格</td>
          <td>操作</td>
      </tr>
    <%for (BookBean bookBean : list) {%>
    <tr>
        <td><img style="width: 60px;height:100px" src="../javaImg/<%=bookBean.getPic()%>"/> </td>
        <td><%=bookBean.getName()%></td>
        <td><%out.print(bookBean.getPrice());%></td>
        <td><a href="show?bookId=<%=bookBean.getId()%>">购买</a></td>
    </tr>        
     <%}%>
</table>

</body>
</html>
<%--
     明天的内容    el +jstl
                 过滤器
                  Mvc
                  springMvc(...)

--%>